// $ANTLR 3.4 C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g 2012-11-09 14:56:45

package PL.prac8;


import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;

@SuppressWarnings({"all", "warnings", "unchecked"})
public class XMLLexer extends Lexer {
    public static final int EOF=-1;
    public static final int BARRA=4;
    public static final int BLANCO=5;
    public static final int CADENA=6;
    public static final int COMENTARIO=7;
    public static final int COMILLAS=8;
    public static final int DIGITO=9;
    public static final int EXCLAMACION=10;
    public static final int GUIONES=11;
    public static final int IGUAL=12;
    public static final int LETRA=13;
    public static final int MAYOR=14;
    public static final int MENOR=15;
    public static final int NUMERO=16;
    public static final int PALABRA=17;

    // delegates
    // delegators
    public Lexer[] getDelegates() {
        return new Lexer[] {};
    }

    public XMLLexer() {} 
    public XMLLexer(CharStream input) {
        this(input, new RecognizerSharedState());
    }
    public XMLLexer(CharStream input, RecognizerSharedState state) {
        super(input,state);
    }
    public String getGrammarFileName() { return "C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g"; }

    // $ANTLR start "BLANCO"
    public final void mBLANCO() throws RecognitionException {
        try {
            int _type = BLANCO;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:8: ( ( ' ' | '\\t' | '\\r\\n' ) )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:10: ( ' ' | '\\t' | '\\r\\n' )
            {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:10: ( ' ' | '\\t' | '\\r\\n' )
            int alt1=3;
            switch ( input.LA(1) ) {
            case ' ':
                {
                alt1=1;
                }
                break;
            case '\t':
                {
                alt1=2;
                }
                break;
            case '\r':
                {
                alt1=3;
                }
                break;
            default:
                NoViableAltException nvae =
                    new NoViableAltException("", 1, 0, input);

                throw nvae;

            }

            switch (alt1) {
                case 1 :
                    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:11: ' '
                    {
                    match(' '); 

                    }
                    break;
                case 2 :
                    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:15: '\\t'
                    {
                    match('\t'); 

                    }
                    break;
                case 3 :
                    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:12:20: '\\r\\n'
                    {
                    match("\r\n"); 



                    }
                    break;

            }


            _channel=HIDDEN;

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "BLANCO"

    // $ANTLR start "DIGITO"
    public final void mDIGITO() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:13:17: ( '0' .. '9' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:
            {
            if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "DIGITO"

    // $ANTLR start "LETRA"
    public final void mLETRA() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:14:16: ( ( 'A' .. 'Z' ) | ( 'a' .. 'z' ) | ( '.' ) )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:
            {
            if ( input.LA(1)=='.'||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
                input.consume();
            }
            else {
                MismatchedSetException mse = new MismatchedSetException(null,input);
                recover(mse);
                throw mse;
            }


            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "LETRA"

    // $ANTLR start "NUMERO"
    public final void mNUMERO() throws RecognitionException {
        try {
            int _type = NUMERO;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:8: ( ( DIGITO )+ ( '.' ( DIGITO )+ )? )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:10: ( DIGITO )+ ( '.' ( DIGITO )+ )?
            {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:10: ( DIGITO )+
            int cnt2=0;
            loop2:
            do {
                int alt2=2;
                int LA2_0 = input.LA(1);

                if ( ((LA2_0 >= '0' && LA2_0 <= '9')) ) {
                    alt2=1;
                }


                switch (alt2) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:
            	    {
            	    if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt2 >= 1 ) break loop2;
                        EarlyExitException eee =
                            new EarlyExitException(2, input);
                        throw eee;
                }
                cnt2++;
            } while (true);


            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:19: ( '.' ( DIGITO )+ )?
            int alt4=2;
            int LA4_0 = input.LA(1);

            if ( (LA4_0=='.') ) {
                alt4=1;
            }
            switch (alt4) {
                case 1 :
                    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:20: '.' ( DIGITO )+
                    {
                    match('.'); 

                    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:15:24: ( DIGITO )+
                    int cnt3=0;
                    loop3:
                    do {
                        int alt3=2;
                        int LA3_0 = input.LA(1);

                        if ( ((LA3_0 >= '0' && LA3_0 <= '9')) ) {
                            alt3=1;
                        }


                        switch (alt3) {
                    	case 1 :
                    	    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:
                    	    {
                    	    if ( (input.LA(1) >= '0' && input.LA(1) <= '9') ) {
                    	        input.consume();
                    	    }
                    	    else {
                    	        MismatchedSetException mse = new MismatchedSetException(null,input);
                    	        recover(mse);
                    	        throw mse;
                    	    }


                    	    }
                    	    break;

                    	default :
                    	    if ( cnt3 >= 1 ) break loop3;
                                EarlyExitException eee =
                                    new EarlyExitException(3, input);
                                throw eee;
                        }
                        cnt3++;
                    } while (true);


                    }
                    break;

            }


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "NUMERO"

    // $ANTLR start "PALABRA"
    public final void mPALABRA() throws RecognitionException {
        try {
            int _type = PALABRA;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:16:9: ( ( LETRA )+ )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:16:11: ( LETRA )+
            {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:16:11: ( LETRA )+
            int cnt5=0;
            loop5:
            do {
                int alt5=2;
                int LA5_0 = input.LA(1);

                if ( (LA5_0=='.'||(LA5_0 >= 'A' && LA5_0 <= 'Z')||(LA5_0 >= 'a' && LA5_0 <= 'z')) ) {
                    alt5=1;
                }


                switch (alt5) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:
            	    {
            	    if ( input.LA(1)=='.'||(input.LA(1) >= 'A' && input.LA(1) <= 'Z')||(input.LA(1) >= 'a' && input.LA(1) <= 'z') ) {
            	        input.consume();
            	    }
            	    else {
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt5 >= 1 ) break loop5;
                        EarlyExitException eee =
                            new EarlyExitException(5, input);
                        throw eee;
                }
                cnt5++;
            } while (true);


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "PALABRA"

    // $ANTLR start "BARRA"
    public final void mBARRA() throws RecognitionException {
        try {
            int _type = BARRA;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:18:6: ( '/' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:18:8: '/'
            {
            match('/'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "BARRA"

    // $ANTLR start "MAYOR"
    public final void mMAYOR() throws RecognitionException {
        try {
            int _type = MAYOR;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:19:7: ( '>' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:19:9: '>'
            {
            match('>'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "MAYOR"

    // $ANTLR start "MENOR"
    public final void mMENOR() throws RecognitionException {
        try {
            int _type = MENOR;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:20:7: ( '<' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:20:9: '<'
            {
            match('<'); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "MENOR"

    // $ANTLR start "IGUAL"
    public final void mIGUAL() throws RecognitionException {
        try {
            int _type = IGUAL;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:21:7: ( '=' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:21:9: '='
            {
            match('='); 

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "IGUAL"

    // $ANTLR start "COMILLAS"
    public final void mCOMILLAS() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:23:19: ( '\"' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:23:21: '\"'
            {
            match('\"'); 

            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "COMILLAS"

    // $ANTLR start "CADENA"
    public final void mCADENA() throws RecognitionException {
        try {
            int _type = CADENA;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:24:7: ( COMILLAS ( PALABRA )+ COMILLAS )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:24:9: COMILLAS ( PALABRA )+ COMILLAS
            {
            mCOMILLAS(); 


            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:24:18: ( PALABRA )+
            int cnt6=0;
            loop6:
            do {
                int alt6=2;
                int LA6_0 = input.LA(1);

                if ( (LA6_0=='.'||(LA6_0 >= 'A' && LA6_0 <= 'Z')||(LA6_0 >= 'a' && LA6_0 <= 'z')) ) {
                    alt6=1;
                }


                switch (alt6) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:24:18: PALABRA
            	    {
            	    mPALABRA(); 


            	    }
            	    break;

            	default :
            	    if ( cnt6 >= 1 ) break loop6;
                        EarlyExitException eee =
                            new EarlyExitException(6, input);
                        throw eee;
                }
                cnt6++;
            } while (true);


            mCOMILLAS(); 


            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "CADENA"

    // $ANTLR start "EXCLAMACION"
    public final void mEXCLAMACION() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:26:22: ( '!' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:26:24: '!'
            {
            match('!'); 

            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "EXCLAMACION"

    // $ANTLR start "GUIONES"
    public final void mGUIONES() throws RecognitionException {
        try {
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:27:18: ( '--' )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:27:20: '--'
            {
            match("--"); 



            }


        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "GUIONES"

    // $ANTLR start "COMENTARIO"
    public final void mCOMENTARIO() throws RecognitionException {
        try {
            int _type = COMENTARIO;
            int _channel = DEFAULT_TOKEN_CHANNEL;
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:28:12: ( MENOR EXCLAMACION GUIONES ( . )* GUIONES MAYOR )
            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:28:13: MENOR EXCLAMACION GUIONES ( . )* GUIONES MAYOR
            {
            mMENOR(); 


            mEXCLAMACION(); 


            mGUIONES(); 


            // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:28:39: ( . )*
            loop7:
            do {
                int alt7=2;
                int LA7_0 = input.LA(1);

                if ( (LA7_0=='-') ) {
                    int LA7_1 = input.LA(2);

                    if ( (LA7_1=='-') ) {
                        alt7=2;
                    }
                    else if ( ((LA7_1 >= '\u0000' && LA7_1 <= ',')||(LA7_1 >= '.' && LA7_1 <= '\uFFFF')) ) {
                        alt7=1;
                    }


                }
                else if ( ((LA7_0 >= '\u0000' && LA7_0 <= ',')||(LA7_0 >= '.' && LA7_0 <= '\uFFFF')) ) {
                    alt7=1;
                }


                switch (alt7) {
            	case 1 :
            	    // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:28:39: .
            	    {
            	    matchAny(); 

            	    }
            	    break;

            	default :
            	    break loop7;
                }
            } while (true);


            mGUIONES(); 


            mMAYOR(); 


            _channel=HIDDEN;

            }

            state.type = _type;
            state.channel = _channel;
        }
        finally {
        	// do for sure before leaving
        }
    }
    // $ANTLR end "COMENTARIO"

    public void mTokens() throws RecognitionException {
        // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:8: ( BLANCO | NUMERO | PALABRA | BARRA | MAYOR | MENOR | IGUAL | CADENA | COMENTARIO )
        int alt8=9;
        switch ( input.LA(1) ) {
        case '\t':
        case '\r':
        case ' ':
            {
            alt8=1;
            }
            break;
        case '0':
        case '1':
        case '2':
        case '3':
        case '4':
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
            {
            alt8=2;
            }
            break;
        case '.':
        case 'A':
        case 'B':
        case 'C':
        case 'D':
        case 'E':
        case 'F':
        case 'G':
        case 'H':
        case 'I':
        case 'J':
        case 'K':
        case 'L':
        case 'M':
        case 'N':
        case 'O':
        case 'P':
        case 'Q':
        case 'R':
        case 'S':
        case 'T':
        case 'U':
        case 'V':
        case 'W':
        case 'X':
        case 'Y':
        case 'Z':
        case 'a':
        case 'b':
        case 'c':
        case 'd':
        case 'e':
        case 'f':
        case 'g':
        case 'h':
        case 'i':
        case 'j':
        case 'k':
        case 'l':
        case 'm':
        case 'n':
        case 'o':
        case 'p':
        case 'q':
        case 'r':
        case 's':
        case 't':
        case 'u':
        case 'v':
        case 'w':
        case 'x':
        case 'y':
        case 'z':
            {
            alt8=3;
            }
            break;
        case '/':
            {
            alt8=4;
            }
            break;
        case '>':
            {
            alt8=5;
            }
            break;
        case '<':
            {
            int LA8_6 = input.LA(2);

            if ( (LA8_6=='!') ) {
                alt8=9;
            }
            else {
                alt8=6;
            }
            }
            break;
        case '=':
            {
            alt8=7;
            }
            break;
        case '\"':
            {
            alt8=8;
            }
            break;
        default:
            NoViableAltException nvae =
                new NoViableAltException("", 8, 0, input);

            throw nvae;

        }

        switch (alt8) {
            case 1 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:10: BLANCO
                {
                mBLANCO(); 


                }
                break;
            case 2 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:17: NUMERO
                {
                mNUMERO(); 


                }
                break;
            case 3 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:24: PALABRA
                {
                mPALABRA(); 


                }
                break;
            case 4 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:32: BARRA
                {
                mBARRA(); 


                }
                break;
            case 5 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:38: MAYOR
                {
                mMAYOR(); 


                }
                break;
            case 6 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:44: MENOR
                {
                mMENOR(); 


                }
                break;
            case 7 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:50: IGUAL
                {
                mIGUAL(); 


                }
                break;
            case 8 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:56: CADENA
                {
                mCADENA(); 


                }
                break;
            case 9 :
                // C:\\Users\\Jose\\workspace\\prac8\\src\\main\\java\\PL\\prac8\\modulosantlr\\XMLLexer.g:1:63: COMENTARIO
                {
                mCOMENTARIO(); 


                }
                break;

        }

    }


 

}